package com.xmall.auth.entity;

import com.xmall.define.base.BaseEntity;
import com.xmall.auth.define.dict.AccountTypeEnum;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 账户
 */
@Data
@ToString
public class SysAccount extends BaseEntity implements Serializable {

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 账户类型（0手机号 1微信）
     */
    private Integer type = AccountTypeEnum.PHONE.getType();

    /**
     * 账号
     */
    private String account;

    /**
     * 密码
     */
    private String password;

    /**
     * 上次登录时间
     */
    private Date lastLoginTime;
}
